﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OpenANDClose
{
    public class cl_0423_Controller
    {
        private cl_0423_Command  lightsOpenCommand, lightsCloseCommand, fansOpenCommand, fansCloseCommand,
            airsOpenCommand, airsCloseCommand, mtsOpenCommand, mtsCloseCommand;

        public cl_0423_Controller(cl_0423_Command lightsOpenCommand, cl_0423_Command lightsCloseCommand,cl_0423_Command fansOpenCommand,cl_0423_Command fansCloseCommand,
            cl_0423_Command airsOpenCommand,cl_0423_Command airsCloseCommand,cl_0423_Command mtsOpenCommand,cl_0423_Command mtsCloseCommand)
        {
            this.lightsOpenCommand = lightsOpenCommand;
            this.lightsCloseCommand = lightsCloseCommand;
            this.fansOpenCommand = fansOpenCommand;
            this.fansCloseCommand = fansCloseCommand;
            this.airsOpenCommand = airsOpenCommand;
            this.airsCloseCommand = airsCloseCommand;
            this.mtsOpenCommand = mtsOpenCommand;
            this.mtsCloseCommand = mtsCloseCommand;
        }

        public void openLights()
        {
            lightsOpenCommand.execute();
        }

        public void closeLights()
        {
            lightsCloseCommand.execute();
        }

        public void openFans()
        {
            fansOpenCommand.execute();
        }
        public void closeFans()
        {
            fansCloseCommand.execute();
        }

        public void openAirConditions()
        {
            airsOpenCommand.execute();
        }


        public void closeAirConditions()
        {
            airsCloseCommand.execute();
        }
        public void openMultimedias()
        {
            mtsOpenCommand.execute();
        }

        public void closeMultimedias()
        {
            mtsCloseCommand.execute();
        }   
    }
}